package com.ihrm.system.dao;

import com.ihrm.domain.system.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User,String>, JpaSpecificationExecutor<User> {

    // 使用 JPQL 查询
    @Query("SELECT bu FROM User bu WHERE bu.mobile = ?1")
    public User findByMobile(String mobile);
}
